package com.soft.javase.ch04.test02;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/22
 * （3）Manager类中的属性有：
 *  * 级别level（String类型）定义该类的构造方法，且重写toString()方法；　
 */
public class Manager extends Employee{
    String level;

    public Manager(String name, String address, String ID, int wage, int workAge, String level) {
        super(name, address, ID, wage, workAge);
        this.level = level;
    }

    @Override
    public String toString() {
        return "Manager{"+"name="+name+", address="+address+", ID="+ID+", wage="+wage+", workAge="+workAge+", level="+level+'}';
    }

    //经理能涨20％
    @Override
    public void raiseSalary() {
        this.wage *=1.2;
    }
}
